package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Sound;
import com.tanhua.dubbo.server.pojo.SoundTimes;
import org.bson.types.ObjectId;

import java.util.List;

public interface SoundApi {


    /**
     * 保存语音
     *
     * @param sound
     * @return
     */
    String saveSound(Sound sound);




    Boolean saveTimes(SoundTimes soundTimes);

    void updateTimes(Long userId,Integer times);

    void updatedate(Long userId,Long date);

    void removeSound( ObjectId id);

    SoundTimes queryTimes(Long userId);


    /**
     *  查询语音
     *
     *
     * @return
     */
    List<Sound> querySoundList();
}
